﻿<%@ Page Language="C#" MasterPageFile="~/Manager/Admin/Admin.master" Title="Collection Activity" %>
<script runat="server">
	protected override void OnLoad(EventArgs e) {
		base.OnLoad(e);
		Dimok.Web.UI.JS.ScriptLocalID(Page, grv);
	}
	public string Filter { get { return grv.BuildFilter(); } }
</script>
<asp:Content ID="CA" ContentPlaceHolderID="AC" Runat="Server">
<asp:UpdatePanel UpdateMode="Always" runat="server"><ContentTemplate>
<UI:GridViewMB ID="grv" DataSourceID="dsLocks" DataKeyNames="ApplID" runat="server" AllowSorting="true"
		ShowSearch="true" EnableViewState="false" AllowEdit="false" HideColumns="expires" AllowPaging="true"
></UI:GridViewMB>
</ContentTemplate></asp:UpdatePanel>
<DS:ObjectDataSourceBase ID="dsLocks" TypeName="Dimok.Locker" SelectMethod="LockedDataSet" DeleteMethod="RemoveLock" runat="server">
<SelectParameters>
	<asp:Parameter Name="ShowAll" DefaultValue="true" Type="Boolean" />
	<asp:ControlParameter ControlID="dsLocks" PropertyName="Page.Filter" Name="Filter" Type="String" />
</SelectParameters>
<DeleteParameters>
	<asp:Parameter Name="ApplID" Type="Int32" DefaultValue="0" />
</DeleteParameters>
</DS:ObjectDataSourceBase>
<script>
pageLoads.push(cropMe);
pageLoadsAsync.push(cropMe);
window.setInterval(
function(){
	if(document.activeElement && document.activeElement.type == "text")return;
	btnRefresh().click();
}
,5*1000);
function cropMe(){
	if( !grv() || cropMe.rows == grv().rows.length )return;
	cropMe.rows = grv().rows.length;
	cropWindow();
}
</script>
</asp:Content>

